home *** CD-ROM | disk | FTP | other *** search
/ Chip: 2001 Haziran / CHIP Haziran2001.iso / prog / haziran / 20 / setup.exe / {app} / plugins / XQ DOS AutoComplete.xpl < prev    next >
Encoding:
XSetup plugin  |  2001-03-28  |  1.3 KB  |  54 lines

  1. "FILE"="Xteq Systems X-Setup Plugin 6.0"
  2. "TYPE"="6"
  3. "COUNT"="1"
  4. "UIPATH"="Appearance\System\DOS"
  5. "NAME"="DOS AutoComplete"
  6. "VERSION"="1.53"
  7. "LANGUAGE"="VBScript"
  8. "OSVERSION"="01010"
  9. "TEXT 1"="Activate DOS-AutoComplete"
  10. "DESCRIPTION 1"="If this option is activated, you can use the TAB key in a CMD-Box (cmd.exe) to AutoComplete your current command."
  11. "DESCRIPTION 2"="It's similar to the AutoComplete function of Internet Explorer."
  12. "DESCRIPTION 3"="Note: This setting is currently available in Windows NT or 2000 only."
  13. "AUTHOR"="Xteq Systems"
  14. "CONTACTURL"="http://www.xteq.com"
  15. "COPYRIGHT"="Copyright ⌐ Xteq Systems - All Rights Reserved"
  16. "COMMENT 1"=" "
  17.  
  18.  
  19.  sp="HKCU\Software\Microsoft\Command Processor\CompletionChar"
  20. sp2="HKCU\Software\Microsoft\Command Processor\EnableExtensions"
  21. Sub Plugin_Initialize 
  22.  if RegPathExists("HKCU\Software\Microsoft\Command Processor\") then
  23.     if RegReadValue(sp)=9 and RegReadValue(sp2)=1 then
  24.        SetUIElement 1,true
  25.     end if
  26.  else
  27.   Disable
  28.  end if
  29. End Sub
  30.  
  31.  
  32. Sub Plugin_CheckData(ElementIndex)
  33. End Sub
  34.  
  35.  
  36.  
  37. Sub Plugin_Apply(ElementIndex,ElementSubIndex)
  38.  b=GetUIElement(1)
  39.  if b=true then
  40.     Call RegWriteValue(sp,9,2)
  41.     Call RegWriteValue(sp2,1,2)
  42.  else
  43.     Call RegWriteValue(sp,0,2)
  44.     Call RegWriteValue(sp2,0,2)
  45.  end if
  46. End Sub
  47.  
  48.  
  49. Sub Plugin_Terminate 
  50. End Sub
  51.  
  52.  
  53.  
  54.